.class Lcom/tendcloud/tenddata/fq$b;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field final synthetic a:Lcom/tendcloud/tenddata/fq;

.field private b:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/tendcloud/tenddata/fq;)V
    .locals 1

    iput-object p1, p0, Lcom/tendcloud/tenddata/fq$b;->a:Lcom/tendcloud/tenddata/fq;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/tendcloud/tenddata/fq$b;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    :try_start_0
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/tendcloud/tenddata/fq$b;->b:Ljava/lang/String;

    const-string v0, "android.intent.action.SCREEN_ON"

    iget-object v1, p0, Lcom/tendcloud/tenddata/fq$b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string v0, "android.intent.action.SCREEN_OFF"

    iget-object v1, p0, Lcom/tendcloud/tenddata/fq$b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/tendcloud/tenddata/fq$b;->a:Lcom/tendcloud/tenddata/fq;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/tendcloud/tenddata/fq;->a(Lcom/tendcloud/tenddata/fq;Z)Z

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0

    :cond_2
    const-string v0, "android.intent.action.USER_PRESENT"

    iget-object v1, p0, Lcom/tendcloud/tenddata/fq$b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/tendcloud/tenddata/fq$b;->a:Lcom/tendcloud/tenddata/fq;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/tendcloud/tenddata/fq;->a(Lcom/tendcloud/tenddata/fq;Z)Z
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0
.end method
